package com.dragon.modules.yuegou.entity.coupon;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 优惠券福利信息领取记录表实体类<br>
 * 对应的表为：coup_welfare_record<br>
 * 
 * @author pbuilder generated
 * @date 2019-10-14 15:16:13
 * @company sgy
 * @version 2.0
 */
@TableName("coup_welfare_record")
@ApiModel(description = "优惠券福利信息领取记录表")
public class WelfareRecordEntity {

    /**  */
	protected String id;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 福利ID */
	@ApiModelProperty("福利ID")
	protected String welfareId;

    /** 券模板ID */
	@ApiModelProperty("券模板ID")
	protected String couponTemplateId;

    /** 领取会员 */
	@ApiModelProperty("领取会员")
	protected String memberId;

    /** 优惠券ID */
	@ApiModelProperty("优惠券ID")
	protected String couponId;

    /** 领取时间 */
	@ApiModelProperty("领取时间")
	protected LocalDateTime receiveTime;

	/**
	 * 构造一个空优惠券福利信息领取记录表实体对象
	 */
	public WelfareRecordEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个优惠券福利信息领取记录表实体对象
	 * 
	 * @param other 其它对象
	 */
	public WelfareRecordEntity(WelfareRecordEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.welfareId = other.welfareId;
     	this.couponTemplateId = other.couponTemplateId;
     	this.memberId = other.memberId;
     	this.couponId = other.couponId;
     	this.receiveTime = other.receiveTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取福利ID
	 * 
	 * @return welfareId 福利ID
	 */
	public String getWelfareId() {
		return welfareId;
	}
  	
	/**
	 * 设置福利ID
	 * 
	 * @param welfareId 福利ID
	 */
	public void setWelfareId(String welfareId) {
		this.welfareId = welfareId;
	}

	/**
	 * 获取券模板ID
	 * 
	 * @return couponTemplateId 券模板ID
	 */
	public String getCouponTemplateId() {
		return couponTemplateId;
	}
  	
	/**
	 * 设置券模板ID
	 * 
	 * @param couponTemplateId 券模板ID
	 */
	public void setCouponTemplateId(String couponTemplateId) {
		this.couponTemplateId = couponTemplateId;
	}

	/**
	 * 获取领取会员
	 * 
	 * @return memberId 领取会员
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置领取会员
	 * 
	 * @param memberId 领取会员
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取优惠券ID
	 * 
	 * @return couponId 优惠券ID
	 */
	public String getCouponId() {
		return couponId;
	}
  	
	/**
	 * 设置优惠券ID
	 * 
	 * @param couponId 优惠券ID
	 */
	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	/**
	 * 获取领取时间
	 * 
	 * @return receiveTime 领取时间
	 */
	public LocalDateTime getReceiveTime() {
		return receiveTime;
	}
  	
	/**
	 * 设置领取时间
	 * 
	 * @param receiveTime 领取时间
	 */
	public void setReceiveTime(LocalDateTime receiveTime) {
		this.receiveTime = receiveTime;
	}

    public String toString() {
		return new StringBuilder().append("WelfareRecordEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",welfareId=").append(welfareId).
			append(",couponTemplateId=").append(couponTemplateId).
			append(",memberId=").append(memberId).
			append(",couponId=").append(couponId).
			append(",receiveTime=").append(receiveTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public WelfareRecordEntity copy() {
		return new WelfareRecordEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 福利ID */
	public static final String COL_WELFARE_ID = "welfare_id";

    /** 券模板ID */
	public static final String COL_COUPON_TEMPLATE_ID = "coupon_template_id";

    /** 领取会员 */
	public static final String COL_MEMBER_ID = "member_id";

    /** 优惠券ID */
	public static final String COL_COUPON_ID = "coupon_id";

    /** 领取时间 */
	public static final String COL_RECEIVE_TIME = "receive_time";
}
